arithmetic operators hackerrank solution python